import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';

@Injectable({
    providedIn: 'root'
})
export class ActionService {
    private avatarChangedSource = new BehaviorSubject<void>(null);
    avatarChanged$ = this.avatarChangedSource.asObservable();

    changeAvatar() {
        this.avatarChangedSource.next();
    }
}
